package com.cloud.bc.service;

import com.cloud.bc.model.entity.BcChats;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cloud.bc.model.entity.BcNotices;
import com.cloud.bc.model.request.ChatRequest;
import com.cloud.bc.model.response.RecentChatResponse;

import java.math.BigInteger;
import java.util.List;

/**
 * 聊天
 *
 * @author douhaichao code generator
 * @date 2021-01-12 11:57:16
 */
public interface BcChatsService extends IService<BcChats> {

    int count(BcChats req);

    List<BcChats> selectAll(BcChats req);

    IPage<BcChats> selectPage(Page page, BcChats req);

    IPage<BcChats> selectPageByLike(Page page, BcChats req);

    BcChats selectOne(BcChats req);

    List<RecentChatResponse> selectRecentChat(Page page, Integer userId);

    List<BcNotices> selectChatList(ChatRequest req);

    void delete(BcChats req);

}
